package com.todo.strategy.online.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.sight.service.api.request.QuerySightPoiByIdRequest;
import com.todo.sight.service.api.response.SightPoiDetailResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author azhebuxing
 * @date 2025/2/24 16:00
 * @description
 */
@FeignClient(name = "todoSightService", url = "http://localhost:18001")
public interface SightPoiRemoteService {

    /**
     * 根据poi主键查询详情
     *
     * @param request
     * @return
     */
    @PostMapping("/api/sightPoi/querySightPoiById")
    BizResponse<SightPoiDetailResponse> querySightPoiById(@RequestBody QuerySightPoiByIdRequest request);
}
